from django.urls import path, re_path
from rest_framework_jwt.views import obtain_jwt_token
from . import views


urlpatterns = [
    path('login/', obtain_jwt_token),
    path('register/', views.UserAPIView.as_view()),
    re_path(r'captcha', views.CaptchaApiView.as_view()),
    re_path(r'mobile/(?P<mobile>(1[3-9]\d{9})?)/$', views.MobileAPIView.as_view()),
    re_path(r'perfect-information/(?P<pk>\d+)/$', views.PerfectInformationAPIView.as_view()),
    re_path(r'sms/(?P<mobile>1[3-9]\d{9})/$', views.SMSAPIView.as_view()),
    re_path(r'email-verify/(?P<pk>\d+)/$', views.EmailVerifyAPIView.as_view()),
    re_path(r'reset-password/(?P<pk>\d+)/$', views.ResetPassword.as_view()),
]
